function a(data) {
  data += 123456;
  console.log(data);
}


Promise.resolve('Success!')
  .then(data => {
    return data.toUpperCase()
  })
  .then(data => {
    console.log(data)
    return data
  })
  .then(a)